package com.cyk.comicforumjava.demos.service;

import com.cyk.comicforumjava.demos.base.ResponseResult;
import com.cyk.comicforumjava.demos.dto.UserDto;
import com.cyk.comicforumjava.demos.enits.Comment;
import com.cyk.comicforumjava.demos.enits.Post;
import com.cyk.comicforumjava.demos.enits.Support;

import java.util.List;

public interface PostService {
    ResponseResult getPost(String token,String postId);

    ResponseResult support(Support support);

    ResponseResult delSupport(Support support);

    ResponseResult comment(Comment comment);

    ResponseResult backPost(Post post);

    ResponseResult backPostList(String postId);

    List<Post> getPostList(String sectionId);

    void addPost(Post post);

    List<Post> getOrderPostList(String sectionId);

    ResponseResult getUserPostList(UserDto userDto);
}
